package chy.dao.impl;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

import org.springframework.stereotype.Repository;

import chy.dao.CheckResultDao;
import chy.entity.CheckResult;
import chy.entity.ClaimVoucher;


@Repository("checkResultDao")
public class CheckResultDaoImpl extends BaseHibernateDaoSupport<CheckResult> implements CheckResultDao{

	@Override
	public int deleteByClaimVoucher(ClaimVoucher claimVoucher) {
		String hql = "delete from CheckResult where claimId = ?";
		return this.getHibernateTemplate()
				.bulkUpdate(hql, claimVoucher.getId());
	}

	@Override
	public void save(CheckResult instance) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void update(CheckResult instance) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void saveOrUpdate(CheckResult instance) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public CheckResult merage(CheckResult instance) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void delete(CheckResult instance) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void delete(Collection<CheckResult> instance) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public Integer delete(Class<CheckResult> cls, Object[] ids) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public CheckResult get(Class<CheckResult> cls, Serializable id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<CheckResult> findAll(Class<CheckResult> cls) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public <E> List<E> findForPage(String hql, int pageNo, int pageSize, Object... values) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Number getTotalCount(String hql, Object... values) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public <E> List<E> find(String hql, Object... values) {
		// TODO Auto-generated method stub
		return null;
	}
	

}
